<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>影院环境</title>
	 <script src="/movie/assets/js/jquery.1.10.2.js"></script>
     <!-- BOOTSTRAP STYLES-->
    <link href="/movie/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="/movie/assets/css/font-awesome.css" rel="stylesheet" />
       <!--CUSTOM BASIC STYLES-->
    <link href="/movie/assets/css/basic.css" rel="stylesheet" />
    <!--CUSTOM MAIN STYLES-->
    <link href="/movie/assets/css/custom.css" rel="stylesheet" />
    <!-- GOOGLE FONTS-->
    <link href='http://fonts.useso.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
    <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">影院后台管理系统</a>
            </div>

            <div class="header-right">

                <a href="message-task.html" class="btn btn-info" title="New Message"><b>30 </b><i class="fa fa-envelope-o fa-2x"></i></a>
                <a href="message-task.html" class="btn btn-primary" title="New Task"><b>40 </b><i class="fa fa-bars fa-2x"></i></a>
                <a href="login.html" class="btn btn-danger" title="Logout"><i class="fa fa-exclamation-circle fa-2x"></i></a>

            </div>
        </nav>
        <!-- /. NAV TOP  -->
        <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">
                    <li>
                        <div class="user-img-div">
                            <img src="${madmin.img }" class="img-thumbnail" />

                            <div class="inner-text">
                                		${madmin.name }
                            
                            </div>
                        </div>

                    </li>


                    <li>
                        <a  href="/movie/MovieAdmin/index"><i class="fa fa-dashboard "></i>首页</a>
                    </li>
                   
                        <li>
                        <a href="#"><i class="fa fa-yelp "></i>座位管理<span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            <li>
                                <a href="invoice.html"><i class="fa fa-coffee"></i>添加座位</a>
                            </li>
                           
                            <li>
                                <a href="invoice.html"><i class="fa fa-coffee"></i>设置座位</a>
                            </li>
                        </ul>
                    </li>
                  
                      <li>
                        <a href="/movie/MovieAdmin/showMovie?cinemaId=${madmin.cinemaId }"><i class="fa fa-anchor "></i>最新电影</a>
                    </li>
                   
                    <li>
                        <a href="/movie/MovieAdmin/updateCinema"><i class="fa fa-square-o "></i>更改影院环境</a>
                    </li>
                     <li>
                     <a  class="active-menu"  href="social.html"><i class="fa fa-send "></i>查看预定形况</a>
                    </li>
                </ul>

            </div>

        </nav>
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper">
            <div id="page-inner">
              
            
                <!-- /. ROW  -->
                <div class="row">
                <c:if test="${books==null }">
                暂无预定
                </c:if>
                <c:forEach items="${books }" var="b" varStatus="k">
                    <div class="col-md-12">
                        <div class="alert alert-success">
                          <form  role="form" action="/movie/MovieAdmin/tuidingCinema" method="post">  	
                            	<dl class="dl-horizontal">
                       
				<dt>
					编号
				</dt>
				<dd>
					${k.index }
					<input type="hidden" name="bId"  value="${b.bId }">
				</dd>
				<dt>
					用户名
				</dt>
				<dd>
					${b.name }
				</dd>
				<dt>
					影名
				</dt>
				<dd>
					${b.bMname }
				</dd>
				<dd>
					<img src="${b.bimg }" width=100px" height="100px"/>
				</dd>
				<dt>
					座位
				</dt>
				<dd>
					${b.seat }
				</dd>
				
				<dt>
					场次
				</dt>
				<dd>
				${b.time }
				</dd>
				<dt>
					支付状态
				</dt>
				<dd>
				${b.status }
				</dd>
			</dl>
			<input type="submit" class="btn btn-success" value="退订">
			
				</form> 
				
				
                        </div>
                    </div>
               
               </c:forEach>
               
                </div>
            
                 <!-- /. ROW  -->
            </div>
            <!-- /. PAGE INNER  -->
        </div>
        <!-- /. PAGE WRAPPER  -->
    </div>
    <!-- /. WRAPPER  -->
    <div id="footer-sec">
        Copyright &copy; 2016.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
    </div>
    <!-- /. FOOTER  -->
    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
    <!-- JQUERY SCRIPTS -->
    <script src="/movie/assets/js/jquery-1.10.2.js"></script>
    <!-- BOOTSTRAP SCRIPTS -->
    <script src="/movie/assets/js/bootstrap.js"></script>
    <!-- METISMENU SCRIPTS -->
   
    <!-- CUSTOM SCRIPTS -->
    <script src="/movie/assets/js/custom.js"></script>
   
  <script type="text/javascript">
                                     	function baocun(){
                                     	
                                     		var cinemaname=xiugai.cinemaname.value;
                                     		var address=xiugai.address.value;
                                     		var tel=xiugai.tel.value;
                                     		var service=xiugai.service.value;
                                     		var cinemapic=xiugai.cinemapic.value;
                                     		var minprice=xiugai.minprice.value;
                                     	
											$.post("/movie/MovieAdmin/baocunCinema",{cinemaname:cinemaname,address:address,tel:tel,service:service,cinemapic:cinemapic,minprice:minprice},
													function(result){
														
														if(result.bc=="no"){
															alert('保存失败！');
															location.href="/movie/MovieAdmin/login";
														}
														else if(result.bc=="yes"){
															window.location.reload();
															alert("保存成功！");
														}
													});
                                     	}
                 </script> 
</body>
</html>
